<?php
class Admin_Models_UserInfoModel extends Zend_Db_Table {
	protected $_name = "userinfo";
	
	function getUserInfoByUserID($user_id){
		$db = Zend_Db_Table::getDefaultAdapter();  
        $mySql=$db->select()->from('userinfo',array("UserID","Username","Avatar"))
        					->where("UserID=?", $user_id);

        $result = $db->fetchRow($mySql);
        return $result;
		
	}
}